import UIKit
import Flutter
import AliyunPlayer

@main
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
  AliListPlayer.setEnableLog(true)
  AliListPlayer.setLogCallbackInfo(LOG_LEVEL_TRACE, callbackBlock: nil)
  let encryptFilePath = Bundle.main.path(forResource: "encryptedApp", ofType: "dat")
  AliPrivateService.initKey(encryptFilePath)
  AliPrivateService.initLicense()

    GeneratedPluginRegistrant.register(with: self)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
}
